const Power = (props)=>{
    let a = sessionStorage.getItem('power');
    a = JSON.parse(a)
    for(let i = 0; i<a.length;i++){
        if(a[i].indexOf(props.path) !== -1){
            return <>{props.ele}</>
        }
    }
    return <h1>您没有访问权限</h1>    
}
export default Power;